Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@staaldraad
staaldraad / huaweiDecrypt.py
Created March 11, 2015 13:19
Decrypt Huawei router/firewall passwords. Huawei stores passwords using DES encryption when the crypted option is enabled.
#!/usr/bin/python
"""
Simple tool to extract local users and passwords from most Huawei routers/firewalls config files.
Will extract plain-text passwords and crypted credentials. Huawei config files use DES encryption with
a known key. Using this information, the script will decrypt credentials found in the config file.
Author: Etienne Stalmans (etienne@sensepost.com)
Version: 1.0 (12/01/2014)
"""
from Crypto.Cipher import DES
@k16shikano
k16shikano / SKILL.md
Last active August 30, 2026 04:05
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。整形(一文一行、引用ブロック、脚注、コラム記法)、段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

整形

@focus97
focus97 / hack-your-own-slack-theme.md
Last active August 30, 2026 03:51
How to theme Slack (Dark, Solarized, White, Rosé, whatever)

How to theme Slack v4.12.0+

Update as of 8.08.2021:

  • Hid the bookmarks bar and fine-tuned some header styles.

If you want to add your own style to Slack, here's how.

My quazi-Tron Theme'ish?

I dunno what happened. I just wanted to try something sporty/future-y, I guess. Code for this is directly below.

@tigercosmos
tigercosmos / touch_bar_linux.md
Created August 24, 2026 03:45
T1 Touch Bar on Linux without reinstalling macOS

T1 Touch Bar on Linux without reinstalling macOS

This document describes the Linux-only method that successfully activated the firmware Touch Bar on a 2016 MacBook Pro with Apple's T1/iBridge coprocessor.

It covers two very different situations:

  1. The T1 already boots as USB device 05ac:8600. Only the Linux driver is needed.
  2. The T1 is stuck in recovery as 05ac:1281, or its EFI EmbeddedOS files are missing. The T1 must be personalized, provisioned, and booted before the driver can work.

Do not run the recovery workflow when the driver-only path is sufficient.

@ErikFontanel
ErikFontanel / filter-youtube-domains.sh
Last active August 30, 2026 03:48
Pi-hole Youtube ad blocking
#!/bin/sh
# This script will fetch the Googlevideo ad domains and append them to the Pi-hole block list.
# Run this script daily with a cron job (don't forget to chmod +x)
# More info here: https://discourse.pi-hole.net/t/how-do-i-block-ads-on-youtube/253/136
# File to store the YT ad domains
FILE=/etc/pihole/youtube.hosts
# Fetch the list of domains, remove the ip's and save them
curl 'https://api.hackertarget.com/hostsearch/?q=googlevideo.com' \
@rohitg00
rohitg00 / llm-wiki.md
Last active August 30, 2026 03:42 — forked from karpathy/llm-wiki.md
LLM Wiki v2 — extending Karpathy's LLM Wiki pattern with lessons from building agentmemory

LLM Wiki v2

A pattern for building personal knowledge bases using LLMs. Extended with lessons from building agentmemory 20K+ Stars ⭐️, a persistent memory engine for AI coding agents.

This builds on Andrej Karpathy's original LLM Wiki idea file. Everything in the original still applies. This document adds what we learned running the pattern in production: what breaks at scale, what's missing, and what separates a wiki that stays useful from one that rots.

What the original gets right

The core insight is correct: stop re-deriving, start compiling. RAG retrieves and forgets. A wiki accumulates and compounds. The three-layer architecture (raw sources, wiki, schema) works. The operations (ingest, query, lint) cover the basics. If you haven't read the original, start there.

@nzec
nzec / README.MD
Last active August 30, 2026 03:41
DeezLoader Offical Page

Thanks to /u/zpoo32 for reporting several issues in this list!

Deemix

  • deemix: just the cli and the library
  • deemix-pyweb: the app with a GUI
  • deemix-server: just the server part of deemix-pyweb
@IncognitoMan
IncognitoMan / psx_bios_patcher.sh
Last active August 30, 2026 03:39
PSX Bios Patcher for MisterFPGA/SuperStationᴼⁿᵉ
# PSX BIOS Patcher Script v1.0
#
# This script patches PSX BIOS files to enable GAMEID support for
# various memory cards that support it (MemCard PRO(2), SD2PSX, etc).
#
# It can also swap between PS1 (700x) and PSone (10x) BIOS as well as
# patch them as long as they are present in the "games/PSX/bios/" folder
# like so:
#
# /media/*/games/PSX/bios/SCPH-7000.BIN